import request from '@/router/axios';
// 获取已选择维修人员列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/repair/person/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
//获取所有维修人员列表
export const getAllList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/repair/person/allList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 保存已选人员
export const save = (data) => {
  return request({
    url: '/api/hg-equipment/repair/person/save',
    method: 'post',
    data: data
  })
}

// 删除
export const remove = (id) => {
  return request({
    url: '/api/hg-equipment/repair/person/remove',
    method: 'post',
    params: {
      id
    }
  })
}